package com.brtbeacon.oauth2.verifytoken.utils;

/**
 * Created by 黄鹏 on 2017/7/3.
 */
public class Constants {

    public static final String ERRMSG = "errmsg";

    public static final String STATE = "state";

    //	state:
//		0 成功
//		-1 异常
//		-2 系统忙
//		101 权限不足
//		102 参数缺失
//		-200 请求失败
//    -103
    public static final int TOKEN_CORRECT = 200;   //请求成功


    public static final int TOKEN_INVALID = 201;  //accesstoken  无效
    public static final String TOKEN_INVALID_S = "Invalid access_token !";

    public static final int NO_AUTHORITY =101;   // 权限不足
	public static final String NO_AUTHORITY_S = "Permission denied !";

    public static final int PARAMETERS_MISS =102;  // 缺失参数
    public static final String PARAMETERS_MISS_S = "Missing parameter !";

    public static final int INVALID_PARAMETER=104;  // 无效参数
    public static final String INVALID_PARAMETER_S = "Invalid parameter !";

    public static final int DATA_EXIST =100;  // 数据已存在
    public static final String DATA_EXIST_S = "Data already exists !";

}
